/*
  FileName : HexFile.h
  Description:

  Created on 2009.3.4 by ZZP.

  Revision History:
    
*/


#ifndef __HEX_FILE_H__
#define __HEX_FILE_H__


typedef struct{
  unsigned int Cnt;
  unsigned int DataCnt;
  unsigned int CalcSum;
  unsigned int FileEnd;

  unsigned int StartF;
  unsigned int Len;
  unsigned int Addr;
  unsigned int Type;
  unsigned int Buf[16];
  unsigned int Sum;
  unsigned int LCR_0D;
  unsigned int LCR_0A;
}HEX_DATA_STRUCT, *pHEX_DATA_STRUCT;

extern HEX_DATA_STRUCT HexData;


typedef struct{
  unsigned long BaseAddr;
  unsigned int Len;
}DATA_TO_FLASH, *pDATA_TO_FLASH;

extern unsigned int ScanHexData(unsigned int *Src, unsigned long Len, 
                         unsigned int *Dest);



#endif


